import React from 'react';

import styles from './try_hooks.less';
import { useToggle } from 'ahooks';

export default function() {
  const [isActive, { toggle }] = useToggle(false);
  return (
    <div className={styles.normal}>
      <h1>Page try_hooks.tsx</h1>
      <div onClick={() => toggle()}>toggle is {String(isActive)}</div>
    </div>
  );
}
